package hu.rsc.feeds.client.gui.table2;

import hu.rsc.feeds.client.data.ColumnFilterInfo;
import hu.rsc.feeds.client.data.ColumnFilterList;

import com.google.gwt.gen2.table.client.MutableTableModel;

public abstract class AbstractFilterSupportTableModel<RowType> extends MutableTableModel<RowType> implements FilterChangeListener {

    private ColumnFilterList columnFilters = new ColumnFilterList();

    public ColumnFilterList getColumnFilters() {
	return this.columnFilters;
    }

    @Override
    public void listenForFilterChange(ColumnFilterInfo info) {
	this.columnFilters.add(info);
    }
}
